package com.jared.crowd.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jared.crowd.entity.Admin;
import com.jared.crowd.entity.AdminExample;

public interface AdminMapper {
	int countByExample(AdminExample example);

	int deleteByExample(AdminExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Admin record);

	int insertSelective(Admin record);

	List<Admin> selectByExample(AdminExample example);

	Admin selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

	int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

	int updateByPrimaryKeySelective(Admin record);

	int updateByPrimaryKey(Admin record);

	List<Admin> selectAdminByKeyword(String keyword);

	void deleteOldRelationship(Integer adminId);

	void insertNewRelationship(@Param("adminId") Integer adminId, @Param("roleIdList") List<Integer> roleIdList);

}